package com.huatec.hiot_cloud.core.entity;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    private String username;
    private String id;
    private String password;
    private String email;

    private Integer is_active;
    private Integer is_supperuser;
    private Integer is_staff;
    private Integer is_developer;

    private String img;
    private String phone;
    private Date lastlogin;
    private Date date_joined;

    public User() {

    }

    public User(String id, String username){
        this.id = id;
        this.username = username;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getIs_active() {
        return is_active;
    }

    public void setIs_active(Integer is_active) {
        this.is_active = is_active;
    }

    public Integer getIs_supperuser() {
        return is_supperuser;
    }

    public void setIs_supperuser(Integer is_supperuser) {
        this.is_supperuser = is_supperuser;
    }

    public Integer getIs_staff() {
        return is_staff;
    }

    public void setIs_staff(Integer is_staff) {
        this.is_staff = is_staff;
    }

    public Integer getIs_developer() {
        return is_developer;
    }

    public void setIs_developer(Integer is_developer) {
        this.is_developer = is_developer;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getLastlogin() {
        return lastlogin;
    }

    public void setLastlogin(Date lastlogin) {
        this.lastlogin = lastlogin;
    }

    public Date getDate_joined() {
        return date_joined;
    }

    public void setDate_joined(Date date_joined) {
        this.date_joined = date_joined;
    }

    public String toString() {
        return "user{" +
                "id='" + id + "\'" +
                "password='" + password + "\'" +
                "username='" + username + "\'" +
                "email='" + email + "\'" +
                "}";
    }
}
